package engine.graphics;

import java.io.Serializable;

public class Vertex2f implements Serializable {

	private static final long serialVersionUID = 1L;

	float x, y ; 
	
	public Vertex2f(float x, float y){
		setX(x); 
		setY(y); 
	}

	public float getX() {
		return x;
	}

	public void setX(float x) {
		this.x = x;
	}

	public float getY() {
		return y;
	}

	public void setY(float y) {
		this.y = y;
	}

	public Vertex2f getInversion(){
		return new Vertex2f(-x, -y) ; 
	}

	
	
}
